package com.jacobson.huobi.api

import com.jacobson.huobi.common.HttpAuthentication
import com.jacobson.huobi.entities.response.AlarmRecordPageResponse
import io.reactivex.Observable
import retrofit2.http.*


interface SystemAlarmRecordApi {

    @FormUrlEncoded
    @POST("record/{market}/{symbol}/{period}")
    @Headers(HttpAuthentication.HEADER)
    fun loadSymbolRecordList(
        @Path("market") market: String,
        @Path("symbol") symbol: String,
        @Field("strategy") strategy: Int,
        @Path("period") period: String,
        @Field("lastTs") lastTs: Long?
    ): Observable<AlarmRecordPageResponse>
}